const mysql = require('mysql') //引入mysql

const db = mysql.createConnection({
	host: '127.0.0.1',
	port: '3307', 
	user: 'back_system',
	password: '123456',
	database: 'back_system'
}) //创建和数据库的连接

module.exports = db //向外导出数据库